3.205 \(\int \frac{\cos (c+d x) (A+C \sec ^2(c+d x))}{(a+a \sec (c+d x))^{5/2}} \, dx\)
Optimal. Leaf size=199 \[ \frac{(35 A+3 C) \sin (c+d x)}{16 a^2 d \sqrt{a \sec (c+d x)+a}}+\frac{(115 A+3 C) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{2} \sqrt{a \sec (c+d x)+a}}\right )}{16 \sqrt{2} a^{5/2} d}-\frac{5 A \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{a^{5/2} d}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}-\frac{(A+C) \sin (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \]
[Out]
(-5*A*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/(a^(5/2)*d) + ((115*A + 3*C)*ArcTan[(Sqrt[a]*Ta
n[c + d*x])/(Sqrt[2]*Sqrt[a + a*Sec[c + d*x]])])/(16*Sqrt[2]*a^(5/2)*d) - ((A + C)*Sin[c + d*x])/(4*d*(a + a*S
ec[c + d*x])^(5/2)) - ((15*A - C)*Sin[c + d*x])/(16*a*d*(a + a*Sec[c + d*x])^(3/2)) + ((35*A + 3*C)*Sin[c + d*
x])/(16*a^2*d*Sqrt[a + a*Sec[c + d*x]])
________________________________________________________________________________________
Rubi [A] time = 0.557619, antiderivative size = 199, normalized size of antiderivative = 1.,
number of steps used = 8, number of rules used = 7, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.212, Rules used =
{4085, 4020, 4022, 3920, 3774, 203, 3795} \[ \frac{(35 A+3 C) \sin (c+d x)}{16 a^2 d \sqrt{a \sec (c+d x)+a}}+\frac{(115 A+3 C) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{2} \sqrt{a \sec (c+d x)+a}}\right )}{16 \sqrt{2} a^{5/2} d}-\frac{5 A \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{a^{5/2} d}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}}-\frac{(A+C) \sin (c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}} \]
Antiderivative was successfully verified.
[In]
Int[(Cos[c + d*x]*(A + C*Sec[c + d*x]^2))/(a + a*Sec[c + d*x])^(5/2),x]
[Out]
(-5*A*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/(a^(5/2)*d) + ((115*A + 3*C)*ArcTan[(Sqrt[a]*Ta
n[c + d*x])/(Sqrt[2]*Sqrt[a + a*Sec[c + d*x]])])/(16*Sqrt[2]*a^(5/2)*d) - ((A + C)*Sin[c + d*x])/(4*d*(a + a*S
ec[c + d*x])^(5/2)) - ((15*A - C)*Sin[c + d*x])/(16*a*d*(a + a*Sec[c + d*x])^(3/2)) + ((35*A + 3*C)*Sin[c + d*
x])/(16*a^2*d*Sqrt[a + a*Sec[c + d*x]])
Rule 4085
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b
_.) + (a_))^(m_), x_Symbol] :> -Simp[(a*(A + C)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n)/(a*f*(
2*m + 1)), x] + Dist[1/(a*b*(2*m + 1)), Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n*Simp[b*C*n + A*b*(
2*m + n + 1) - (a*(A*(m + n + 1) - C*(m - n)))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, C, n}, x]
&& EqQ[a^2 - b^2, 0] && LtQ[m, -2^(-1)]
Rule 4020
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> -Simp[((A*b - a*B)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n)/(b*f*(2
*m + 1)), x] - Dist[1/(a^2*(2*m + 1)), Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n*Simp[b*B*n - a*A*(2
*m + n + 1) + (A*b - a*B)*(m + n + 1)*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, B, n}, x] && NeQ[A*
b - a*B, 0] && EqQ[a^2 - b^2, 0] && LtQ[m, -2^(-1)] && !GtQ[n, 0]
Rule 4022
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> Simp[(A*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n)/(f*n), x] - Dist[1
/(b*d*n), Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^(n + 1)*Simp[a*A*m - b*B*n - A*b*(m + n + 1)*Csc[e + f*x
], x], x], x] /; FreeQ[{a, b, d, e, f, A, B, m}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && LtQ[n, 0]
Rule 3920
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c/a,
Int[Sqrt[a + b*Csc[e + f*x]], x], x] - Dist[(b*c - a*d)/a, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /
; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0]
Rule 3774
Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*b)/d, Subst[Int[1/(a + x^2), x], x, (b*C
ot[c + d*x])/Sqrt[a + b*Csc[c + d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]
Rule 203
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])
Rule 3795
Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2/f, Subst[Int[1/(2
*a + x^2), x], x, (b*Cot[e + f*x])/Sqrt[a + b*Csc[e + f*x]]], x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0
]
Rubi steps
\begin{align*} \int \frac{\cos (c+d x) \left (A+C \sec ^2(c+d x)\right )}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac{(A+C) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac{\int \frac{\cos (c+d x) \left (-a (5 A+C)+\frac{1}{2} a (5 A-3 C) \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=-\frac{(A+C) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac{\int \frac{\cos (c+d x) \left (-\frac{1}{2} a^2 (35 A+3 C)+\frac{3}{4} a^2 (15 A-C) \sec (c+d x)\right )}{\sqrt{a+a \sec (c+d x)}} \, dx}{8 a^4}\\ &=-\frac{(A+C) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(35 A+3 C) \sin (c+d x)}{16 a^2 d \sqrt{a+a \sec (c+d x)}}-\frac{\int \frac{20 a^3 A-\frac{1}{4} a^3 (35 A+3 C) \sec (c+d x)}{\sqrt{a+a \sec (c+d x)}} \, dx}{8 a^5}\\ &=-\frac{(A+C) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(35 A+3 C) \sin (c+d x)}{16 a^2 d \sqrt{a+a \sec (c+d x)}}-\frac{(5 A) \int \sqrt{a+a \sec (c+d x)} \, dx}{2 a^3}+\frac{(115 A+3 C) \int \frac{\sec (c+d x)}{\sqrt{a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac{(A+C) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(35 A+3 C) \sin (c+d x)}{16 a^2 d \sqrt{a+a \sec (c+d x)}}+\frac{(5 A) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{a^2 d}-\frac{(115 A+3 C) \operatorname{Subst}\left (\int \frac{1}{2 a+x^2} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=-\frac{5 A \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{a^{5/2} d}+\frac{(115 A+3 C) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{2} \sqrt{a+a \sec (c+d x)}}\right )}{16 \sqrt{2} a^{5/2} d}-\frac{(A+C) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}-\frac{(15 A-C) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(35 A+3 C) \sin (c+d x)}{16 a^2 d \sqrt{a+a \sec (c+d x)}}\\ \end{align*}
Mathematica [A] time = 3.85664, size = 166, normalized size = 0.83 \[ \frac{\tan ^3\left (\frac{1}{2} (c+d x)\right ) (-((55 A+7 C) \cos (c+d x)+8 A \cos (2 (c+d x))+43 A+3 C))-\frac{(115 A+3 C) \sin (c+d x) \sqrt{\sec (c+d x)-1} \tan ^{-1}\left (\frac{\sqrt{\sec (c+d x)-1}}{\sqrt{2}}\right )}{\sqrt{2}}+80 A \sin (c+d x) \sqrt{\sec (c+d x)-1} \tan ^{-1}\left (\sqrt{\sec (c+d x)-1}\right )}{16 a^2 d (\cos (c+d x)-1) \sqrt{a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
Integrate[(Cos[c + d*x]*(A + C*Sec[c + d*x]^2))/(a + a*Sec[c + d*x])^(5/2),x]
[Out]
(80*A*ArcTan[Sqrt[-1 + Sec[c + d*x]]]*Sqrt[-1 + Sec[c + d*x]]*Sin[c + d*x] - ((115*A + 3*C)*ArcTan[Sqrt[-1 + S
ec[c + d*x]]/Sqrt[2]]*Sqrt[-1 + Sec[c + d*x]]*Sin[c + d*x])/Sqrt[2] - (43*A + 3*C + (55*A + 7*C)*Cos[c + d*x]
+ 8*A*Cos[2*(c + d*x)])*Tan[(c + d*x)/2]^3)/(16*a^2*d*(-1 + Cos[c + d*x])*Sqrt[a*(1 + Sec[c + d*x])])
________________________________________________________________________________________
Maple [B] time = 0.366, size = 835, normalized size = 4.2 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cos(d*x+c)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^(5/2),x)
[Out]
1/32/d/a^3*(-1+cos(d*x+c))^2*(80*A*sin(d*x+c)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*arctanh(1/2*2^(1/2)*(-2*cos
(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))*cos(d*x+c)^2*2^(1/2)+115*A*(-2*cos(d*x+c)/(cos(d*x+c)+1))
^(1/2)*ln(-(-(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)+cos(d*x+c)-1)/sin(d*x+c))*sin(d*x+c)*cos(d*x+c)^2
+160*A*sin(d*x+c)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2
)*sin(d*x+c)/cos(d*x+c))*2^(1/2)*cos(d*x+c)+3*C*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*ln(-(-(-2*cos(d*x+c)/(cos
(d*x+c)+1))^(1/2)*sin(d*x+c)+cos(d*x+c)-1)/sin(d*x+c))*sin(d*x+c)*cos(d*x+c)^2+230*A*cos(d*x+c)*sin(d*x+c)*(-2
*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*ln(-(-(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)+cos(d*x+c)-1)/sin(d*x+
c))+80*A*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))*2^(1/2)*(-2*cos(d*x+c
)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)-32*A*cos(d*x+c)^4+6*C*cos(d*x+c)*sin(d*x+c)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^
(1/2)*ln(-(-(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)+cos(d*x+c)-1)/sin(d*x+c))+115*A*(-2*cos(d*x+c)/(co
s(d*x+c)+1))^(1/2)*ln(-(-(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)+cos(d*x+c)-1)/sin(d*x+c))*sin(d*x+c)-
78*A*cos(d*x+c)^3+3*C*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*ln(-(-(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+
c)+cos(d*x+c)-1)/sin(d*x+c))*sin(d*x+c)-14*C*cos(d*x+c)^3+40*A*cos(d*x+c)^2+8*C*cos(d*x+c)^2+70*A*cos(d*x+c)+6
*C*cos(d*x+c))*(a*(cos(d*x+c)+1)/cos(d*x+c))^(1/2)/sin(d*x+c)^5
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^(5/2),x, algorithm="maxima")
[Out]
Timed out
________________________________________________________________________________________
Fricas [A] time = 16.6962, size = 1829, normalized size = 9.19 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^(5/2),x, algorithm="fricas")
[Out]
[-1/64*(sqrt(2)*((115*A + 3*C)*cos(d*x + c)^3 + 3*(115*A + 3*C)*cos(d*x + c)^2 + 3*(115*A + 3*C)*cos(d*x + c)
+ 115*A + 3*C)*sqrt(-a)*log((2*sqrt(2)*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x +
c) + 3*a*cos(d*x + c)^2 + 2*a*cos(d*x + c) - a)/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1)) + 160*(A*cos(d*x + c)^
3 + 3*A*cos(d*x + c)^2 + 3*A*cos(d*x + c) + A)*sqrt(-a)*log((2*a*cos(d*x + c)^2 - 2*sqrt(-a)*sqrt((a*cos(d*x +
c) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x + c) + a*cos(d*x + c) - a)/(cos(d*x + c) + 1)) - 4*(16*A*cos(d*x +
c)^3 + (55*A + 7*C)*cos(d*x + c)^2 + (35*A + 3*C)*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d
*x + c))/(a^3*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 + 3*a^3*d*cos(d*x + c) + a^3*d), -1/32*(sqrt(2)*((115*
A + 3*C)*cos(d*x + c)^3 + 3*(115*A + 3*C)*cos(d*x + c)^2 + 3*(115*A + 3*C)*cos(d*x + c) + 115*A + 3*C)*sqrt(a)
*arctan(sqrt(2)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)/(sqrt(a)*sin(d*x + c))) - 160*(A*cos(d*x
+ c)^3 + 3*A*cos(d*x + c)^2 + 3*A*cos(d*x + c) + A)*sqrt(a)*arctan(sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos
(d*x + c)/(sqrt(a)*sin(d*x + c))) - 2*(16*A*cos(d*x + c)^3 + (55*A + 7*C)*cos(d*x + c)^2 + (35*A + 3*C)*cos(d*
x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c))/(a^3*d*cos(d*x + c)^3 + 3*a^3*d*cos(d*x + c)^2 +
3*a^3*d*cos(d*x + c) + a^3*d)]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)*(A+C*sec(d*x+c)**2)/(a+a*sec(d*x+c))**(5/2),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)*(A+C*sec(d*x+c)^2)/(a+a*sec(d*x+c))^(5/2),x, algorithm="giac")
[Out]
Exception raised: NotImplementedError